/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 晓星航
 * Date: 2022-10-05
 * Time: 14:29
 */
public class TestDemo1 {
    public static void main(String[] args) {
        int a = 0x1;
        int b = 0x2;
        System.out.printf("%x\n", a ^ b);
    }
    public static void main10(String[] args) {
        System.out.println(10 > 20 && 10 / 0 == 0); // 打印 false
        System.out.println(10 < 20 || 10 / 0 == 0); // 打印 true
    }
    public static void main9(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a == b);
        System.out.println(a != b);
        System.out.println(a < b);
        System.out.println(a > b);
        System.out.println(a <= b);
        System.out.println(a >= b);
    }
    public static void main8(String[] args) {
        int a = 10;
        a += 1; // 等价于 a = a + 1
        System.out.println(a);
    }
    public static void main7(String[] args) {
        System.out.println(11.5 % 2.0);
    }
    public static void main6(String[] args) {
        int a = 1;
        int b = 0;
        System.out.println(a / b);
    }
    public static void main5(String[] args) {
        boolean value = true;
        System.out.println(value);
    }

    public static void main4(String[] args) {
        String s = "hello";
        System.out.println(s);
        System.out.println("hello"+10+20);
        System.out.println(10+20+"hello");
        System.out.println(10+""+20+"hello");
    }
    public static void main3(String[] args) {
        boolean flg = true;
        System.out.println(flg);
    }
    public static void main2(String[] args) {
        System.out.println("hehe");
    }
    public static void main1(String[] args) {
/*
        long a = 10;
        System.out.println(a);
        System.out.println(Long.MAX_VALUE);
        System.out.println(Long.MIN_VALUE);
*/
        double a = 1.0;
        double b = 2.0;
        System.out.println(a/b);
    }
}
